const { Builder } = require('selenium-webdriver')
const chrome = require('selenium-webdriver/chrome')

module.exports = function getDriver () {
  return new Builder()
  .forBrowser('chrome')
 .setChromeOptions(new chrome.Options().excludeSwitches(['ignore-certificate-errors']))
  .build()
}